import request from '@/utils/request.js'

export const addtenderservice = (data) => {
  return request.post('/addTender',data)
}

export const gettendersservice = (data) => {
  return request.post('/getTenders',data)
}

export const uploadtenderfileservice = (data,elseid) => {
  return request.post('/uploadTenderFile?elseid='+elseid,data)
}

export const getloadtenderfilenameservice = (data) => {
  return request.get('/getLoadTenderFileName?elseid='+data)
}

export const updatetenderservice = (data) => {
  return request.put('/updateTender',data)
}

export const deletetenderservice = (id) => {
  return request.delete('/deleteTender?id='+id)
}